-- GENERATED SPELL FOR [Sirana Iceshriek] --


function spell0_29794(pUnit, Event) --@Ice Shriek,n/a--
pUnit:FullCastSpellOnTarget(61211,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29794', 593, 1)
end

function spell1_29794(pUnit, Event) --@Talon Strike,n/a--
pUnit:FullCastSpellOnTarget(61223,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29794', 620, 1)
end

function Sorts_29794(pUnit, Event)
local choix_sorts_29794 = math.random(0, 1)
if choix_sorts_29794 == 0 then
pUnit:RegisterEvent('spell0_29794', 1, 1)
end
if choix_sorts_29794 == 1 then
pUnit:RegisterEvent('spell1_29794', 1, 1)
end
end

function mob29794_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29794', math.random(1500, 3000), 1)
end

function mob29794_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29794_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29794_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29794, 1, 'mob29794_Action')
RegisterUnitEvent(29794, 2, 'mob29794_Leave')
RegisterUnitEvent(29794, 3, 'mob29794_Kill')
RegisterUnitEvent(29794, 4, 'mob29794_Die')
